<div class="main_content">

	<?php //echo $this->form_search; ?>
	<?php
	echo "<h2>".$this->translate("Search result")."</h2>"?>
	
	<?php
	if (empty ( $this->hits )) :
		?>
		<?php echo $this->translate("Nothing was found")?>
	
	 <?php else :
		?>
	
	<ul>
		<?php
		foreach ( $this->hits as $hit ) :
			?>
	
		<li>
		<a href="
		<?php if(Zend_Auth::getInstance()->hasIdentity()): ?>
			<?php echo $this->url ( array ('controller' => $hit->login, 'action' => null, 'id' => null,'request' => null ),"default" )?>">
	
		<?php else:?>
			<?php echo $this->url ( array ('controller' => 'error', 'action' => 'onlyreg', 'id' => null,'request' => null ),"default" )?>">
		<?php endif;?>
			<?php echo  $hit->name." ".$hit->surname ?></a>
			</li>
	
		
	<?php endforeach;?>
	</ul>
	
	<?php endif;?>

</div>